package cn.kgc.mapper;

import cn.kgc.pojo.SmbmsBill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BillMapper {

    int getBillConut(@Param("productName") String productName,
                 @Param("isPayment") Integer isPayment);

    List<SmbmsBill> getBillByPage(@Param("pageNo") Integer pageNo,
                              @Param("pageSize") Integer pageSize,
                              @Param("productName") String productName,
                              @Param("isPayment") Integer isPayment);

    int addBill(SmbmsBill smbmsBill);

    int updateBill(SmbmsBill smbmsBill);

    int delBillId(Integer id);

    SmbmsBill getBillId(Integer id);

    SmbmsBill getBillCode(@Param("billCode") String billCode);
}
